package com.hhsjdesign.dynamicui.core.property.widget

import com.hhsjdesign.dynamicui.core.property.ViewBaseProperty.Companion.TRANSPARENT
import com.hhsjdesign.dynamicui.core.property.WidgetSpecProperty
import org.json.JSONObject

//列表
class ListWidgetProperty : WidgetSpecProperty {

    var showDivider: Int = 0; //是否展示分割线
    var dividerColor: String? = null
    var dividerLeftPadding: Int = 0
    var dividerRightPadding: Int = 0

    constructor(jo: JSONObject) : super(jo) {
        showDivider = jo.optInt("showDivider")
        dividerColor = jo.optString("dividerColor", TRANSPARENT)
        dividerLeftPadding = jo.optInt("dividerLeftPadding", 0)
        dividerRightPadding = jo.optInt("dividerRightPadding", 0)
    }
}
